package com.example.rbacmanage.service;

import com.example.rbacmanage.base.BaseService;
import com.example.rbacmanage.entity.SysJob;
import com.example.rbacmanage.exception.TaskException;
import org.quartz.SchedulerException;

public interface SysJobService extends BaseService<SysJob> {
    boolean run(SysJob job)  throws SchedulerException;

    void changeStatus(SysJob newJob) throws SchedulerException;

    void insertJob(SysJob job) throws SchedulerException, TaskException;

    void updateJob(SysJob job) throws SchedulerException, TaskException;

    void removeJob(Long[] jobIds) throws SchedulerException;
}
